<%@ Page Language="vb" AutoEventWireup="false" Codebehind="CreateOrderCompleteInfo.aspx.vb" Inherits="MIMS_WRS.Web.CreateOrderCompleteInfo" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>CreateOrderCompleteInfo</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../style.css" type="text/css" rel="stylesheet">
		<script language="JavaScript" src="../function.js" type="text/JavaScript"></script>
		<script language="javascript" src="../Js/EventCapture.js"></script>
		<script language="javascript" src="../Js/popcalendar.js"></script>
		<script language="javascript" src="../Js/common.js"></script>
		<script language="javascript">
		
		<!--
		var freightForwarderLKID = <%= MIMS_WRS.Business.Common.GetFreightForwarderLKID %>;
		
		function AddFreightForwarder(obj, textReturn, idReturn, title, w, h, id, valueno) {
			var pos = calcBelowPosition(obj, w);
			var lpos=(screen.width - w)/2
			var tpos=(screen.height - h)/2		

			var reval;
			var url = escape('LookupDataInputDialog.aspx?id='+id);
			reval = window.showModalDialog('../Dialogs/ShowDialog.aspx?title='+escape(title)+'&src='+url,"","dialogHeight: " + h + "px; dialogWidth: " + w + "px; dialogTop: " + tpos + "px; dialogLeft: " + lpos + "px; edge: Raised; center: Yes; help: No; resizable: No; status: No;")
			if (reval != null) {
				switch (valueno) {
					case 1:
						textReturn.value = reval.Value1;
						break;
					case 2:
						textReturn.value = reval.Value2;
						break;
					case 3:
						textReturn.value = reval.Value3;
						break;
				}
				idReturn.value = reval.ID;			
				return true;
			}
			return false
		}
		
		function OpenFreightForwarderList(obj,  textReturn, idReturn, title, w, h, id, valueno) {
			var pos = calcBelowPosition(obj, w);			
			var lpos=(screen.width - w)/2
			var tpos=(screen.height - h)/2		

			var reval;			
			//var url=escape('Popup_Color.aspx?id='+id+'&t='+valueno);
			var url=escape('popup_freight.htm');
			reval = window.showModalDialog('../Dialogs/ShowDialog.aspx?title='+escape(title)+'&src='+url,"","dialogHeight: " + h + "px; dialogWidth: " + w + "px; dialogTop: " + tpos + "px; dialogLeft: " + lpos + "px; edge: Raised; center: Yes; help: No; resizable: No; status: No;")
			
			if (reval != null) {
				textReturn.value = reval.Text;
				idReturn.value = reval.Value;
				return true;
			}
			return false
		}

		//-->
		</script>
	</HEAD>
	<body MS_POSITIONING="GridLayout" onload="javascript:window.document.getElementById('txtDestination').focus();">
		<form id="Form1" method="post" runat="server">
			<table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
				<tr>
					<td vAlign="top" align="center" height="100%">
						<table class="border1" height="100%" cellSpacing="2" cellPadding="2" width="100%" border="0">
							<tr>
								<td class="bggrey" align="center">
									<TABLE height="100%" cellSpacing="0" cellPadding="3" width="100%" border="0">
										<TR class="bgmenu" align="center">
											<TD width="100%" height="30"><span class="txtnormal"><strong>
														<asp:Label id="lblTitle" runat="server">Create Order's Complete Information</asp:Label></strong></span></TD>
										</TR>
										<TR class="txtnormal" align="center">
											<TD height="20"><span class="txthighlight"><asp:label id="lblErr" runat="server"></asp:label></span></TD>
										</TR>
										<TR class="txtnormal" align="center">
											<TD vAlign="top">
												<TABLE cellSpacing="0" cellPadding="3" width="100%" border="0">
													<TR>
														<TD class="txtnormal" noWrap align="right" width="37%">Actual Departure Date:</TD>
														<TD class="txtnormal" align="center" width="1%">&nbsp;</TD>
														<TD width="62%">
															<table cellSpacing="0" cellPadding="0" border="0">
																<tr>
																	<td><asp:textbox id="txtDepartureDate" runat="server" ReadOnly="True" CssClass="txtsmall"></asp:textbox></td>
																	<td><A onclick="javascript:popUpCalendar(this, window.document.getElementById('txtDepartureDate'), '<%= MIMS_WRS.Business.Common.GetDateFormat %>'); return false;" href="javascript:doNothing();" ><IMG height="20" hspace="1" src="../images/b_date.gif" width="22" border="0"></A></td>
																</tr>
															</table>
														</TD>
													</TR>
													<TR>
														<TD class="txtnormal" align="right">Destination:</TD>
														<TD class="txtnormal" align="center">&nbsp;</TD>
														<TD><asp:textbox id="txtDestination" runat="server" CssClass="txtsmall" MaxLength="100" Width="300px"></asp:textbox></TD>
													</TR>
													<TR>
														<TD class="txtnormal" align="right">Freight Forwarder:</TD>
														<TD class="txtnormal" align="center">&nbsp;</TD>
														<TD>
															<table cellSpacing="0" cellPadding="0" border="0">
																<tr>
																	<td><asp:textbox id="txtFreightForwarder" runat="server" ReadOnly="True" CssClass="txtsmall"></asp:textbox></td>
																	<td><A onclick="OpenFreightForwarderList(this, window.document.getElementById('txtFreightForwarder'), window.document.getElementById('hidFreightForwarder'), 'Select a freight forwarder', 450, 240, freightForwarderLKID, 1)"
																			href="javascript:doNothing()"><IMG height="20" hspace="1" src="../images/b_browse.gif" width="22" border="0"></A><A onclick="AddFreightForwarder(this, window.document.getElementById('txtFreightForwarder'), window.document.getElementById('hidFreightForwarder'), 'Create new Freight Forwarder', 360, 160, freightForwarderLKID, 1)"
																			href="javascript:doNothing()"><IMG height="20" hspace="4" src="../images/b_new.gif" width="72" border="0"></A>
																		<INPUT class="txtsmall" id="hidFreightForwarder" type="hidden" name="hidFreightForwarder"
																			runat="server"></td>
																</tr>
															</table>
														</TD>
													</TR>
													<TR>
														<TD class="txtnormal" align="right">Container Number :</TD>
														<TD class="txtnormal" align="center">&nbsp;</TD>
														<TD><asp:textbox id="txtContainerNumber" runat="server" CssClass="txtsmall" MaxLength="12"></asp:textbox></TD>
													</TR>
													<TR>
														<TD class="txtnormal" vAlign="top" align="right">Comments:</TD>
														<TD class="txtnormal" align="center">&nbsp;</TD>
														<TD><asp:textbox onkeypress="MaxlengthTextArea(this, 200)" id="txtComment" runat="server" CssClass="txtsmall"
																Width="300px" Rows="3" TextMode="MultiLine"></asp:textbox></TD>
													</TR>
												</TABLE>
											</TD>
										</TR>
										<TR class="txtnormal" align="center">
											<TD height="30"><span class="txtsmall">
													<asp:button id="btnSubmit" runat="server" CssClass="button" Text="Save"></asp:button>
													<input class="button" onclick="window.close()" type="button" value="Cancel" name="Submit223">
												</span>
											</TD>
										</TR>
										<TR class="txtnormal" align="center">
											<TD height="10"><IMG height="1" src="../images/1pxl.gif" width="1"></TD>
										</TR>
									</TABLE>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
